﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="QLMonAn.aspx.cs" Inherits="admin_Default2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phContent" Runat="Server">
<form id="frThemMon" runat="server">
     <fieldset>
        <legend>Thông tin món ăn</legend>  
            
            <div class="fm-req">                
                <asp:Label runat="server" ID="lbff_error" CssClass="error"></asp:Label>
            </div> 
            
            <div class="fm-req">                
                <label>Loại món ăn: </label>
                <asp:DropDownList ID="cboFoodType" runat="server" AutoPostBack="true" Width="256px"></asp:DropDownList>
            </div>
            
            <div class="fm-req">                
                <label>Tên món ăn: </label>
                <asp:TextBox ID="txtFastFoodName" runat="server"></asp:TextBox>
            </div>
            
             <div class="fm-req">                
                <label>Giá bán: </label>
                <asp:TextBox ID="txtGia" runat="server"></asp:TextBox>
            </div>                
             
            <div class="fm-req">                
                <label>Đơn vị: </label>
                <asp:TextBox ID="TxtDonvi" runat="server"></asp:TextBox>
            </div> 
         <div class="fm-req">
            <label>Hình ảnh:</label>
            <asp:FileUpload ID="fImage" runat="server" Width="305px"/>
            <em>
                <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="fImage" display="Dynamic" errormessage="File hình ảnh là bắt buộc"></asp:requiredfieldvalidator>                
                <asp:RegularExpressionValidator ID="fImageExpressionValidate" ControlToValidate="fImage" runat="server" Display="Dynamic" ErrorMessage="File không đúng định dạng hình ảnh" ValidationExpression="^.+(.jpg|.JPG|.gif|.GIF)$"></asp:RegularExpressionValidator>
            </em>
        </div> 
        
            <div class="fm-req">                
                <label>Giới thiệu: </label>
                <asp:DropDownList ID="cboGioithieu_mon_an" runat="server" AutoPostBack="true" Width="254px"></asp:DropDownList>
            </div> 
            
            <div class="fr-req">
            <label> --> </label>
            <asp:TextBox ID="txtchitietgioithieumonan" runat="server" Height="135px" TextMode="MultiLine"></asp:TextBox>
            </div>
               
        </fieldset>
        <div class="fm-req" id="fm-submit">          
            <asp:Button runat="server" text="Thêm món" ID="btaddFastFood" OnClick="btaddFastFood_Click"/>    
            <asp:Button runat="server" text="Sửa món" ID="btSuamon"/>                                       
        </div>
         <fieldset>
            <legend>Danh sách món ăn</legend>
            <table style="border-collapse: collapse" border="1" cellpadding="0" cellspacing="0"
                id="table4" width="100%" bordercolor="#cc9900">
                <tr>
                    <td colspan="4" bgcolor="#cc9900" style="height: 23px; text-align: center">
                        <span class="hqtitle"><strong></strong></span></td>
                </tr>  
                <div id="noidungmon" runat="server"></div>             
            </table>
        </fieldset>
        
    </form>
</asp:Content>

